home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
join.z
/
join
Wrap
Text File
|
1998-10-20
|
7KB
|
133 lines
jjjjooooiiiinnnn((((1111)))) jjjjooooiiiinnnn((((1111))))
NNNNAAAAMMMMEEEE
_jjjj_oooo_iiii_nnnn - relational database operator
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_jjjj_oooo_iiii_nnnn [ -_a _n | -_v _n ] [ -_e _s ] [ -_o _l_i_s_t ] [ -_t _c ] [ -_1 _f_i_e_l_d ] [ -_2
_f_i_e_l_d ] _f_i_l_e_1 _f_i_l_e_2
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_jjjj_oooo_iiii_nnnn forms, on the standard output, a join of the two relations specified
by the lines of _f_i_l_e_1 and _f_i_l_e_2. If _f_i_l_e_1 is _----, the standard input is
used. _f_i_l_e_1 and _f_i_l_e_2 must be sorted in increasing code set collating
sequence on the fields on which they are to be joined, normally the first
in each line [see _ssss_oooo_rrrr_tttt(1)]. _jjjj_oooo_iiii_nnnn processes supplementary code set
characters in files, and recognizes supplementary code set characters
given to the _----_eeee and _----_tttt options (see below) according to the locale
specified in the _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE environment variable [see _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)].
There is one line in the output for each pair of lines in _f_i_l_e_1 and _f_i_l_e_2
that have identical join fields. The output line normally consists of
the common field, then the rest of the line from _f_i_l_e_1, then the rest of
the line from _f_i_l_e_2.
The default input field separators are blank, tab, or new-line. In this
case, multiple separators count as one field separator, and leading
separators are ignored. The default output field separator is a blank.
Some of the options below use the argument _n. This argument should be a
_1111 or a _2222 referring to either _f_i_l_e_1 or _f_i_l_e_2, respectively. The following
options are recognized:
_----_aaaa _n In addition to the normal output, produce a line for each
unpairable line in file _n, where _n is 1 or 2.
_----_eeee _s Replace empty output fields with string _s. _s may contain
supplementary code set characters.
_----_oooo _l_i_s_t Each output line includes the fields specified in _l_i_s_t, each
element of which has the form _n_...._m, where _n is a file number and
_m is a field number. The common field is not printed unless
specifically requested. The list must be a single command line
argument.
_----_tttt _c Use character _c as a separator (tab character). Every
appearance of _c in a line is significant. The character _c is
used as the field separator for both input and output. _c may be
a supplementary code set character.
_----_vvvv _n Instead of the default output, produce a line only for each
unpairable line in n, where n is 1 or 2. If both _----_vvvv _1 and _----_vvvv _2
are specified, all unpairable lines will be output.
PPPPaaaaggggeeee 1111
jjjjooooiiiinnnn((((1111)))) jjjjooooiiiinnnn((((1111))))
_----_1111 _f_i_e_l_d Join the fieldth field of file 1. Fields are decimal integers
starting with 1.
_----_2222 _f_i_e_l_d Join the fieldth field of file 2. Fields are decimal integers
starting with 1.
The following options are obsoleted:
_----_jjjj _f_i_e_l_d
Equivalent to: _----_1111 _ffff_iiii_eeee_llll_dddd _----_2222 _ffff_iiii_eeee_llll_dddd.
_----_jjjj_1 _f_i_e_l_d
Equivalent to: _----_1111 _ffff_iiii_eeee_llll_dddd.
_----_jjjj_2 _f_i_e_l_d
Equivalent to: _----_2222 _ffff_iiii_eeee_llll_dddd.
EEEEXXXXAAAAMMMMPPPPLLLLEEEE
The following command line will join the password file and the group
file, matching on the numeric group ID, and outputting the login name,
the group name, and the login directory. It is assumed that the files
have been sorted in code set collating sequence on the group ID fields.
_jjjj_oooo_iiii_nnnn _----_1111 _4444 _----_2222 _3333 _----_oooo _1111_...._1111_,,,,_2222_...._1111_,,,,_1111_...._6666 _----_tttt _:::: _////_eeee_tttt_cccc_////_pppp_aaaa_ssss_ssss_wwww_dddd _////_eeee_tttt_cccc_////_gggg_rrrr_oooo_uuuu_pppp
FFFFIIIILLLLEEEESSSS
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_dddd_ffff_mmmm
language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).]
SSSSEEEEEEEE AAAALLLLSSSSOOOO
_aaaa_wwww_kkkk(1), _cccc_oooo_mmmm_mmmm(1), _ssss_oooo_rrrr_tttt(1), _uuuu_nnnn_iiii_qqqq(1)
NNNNOOOOTTTTEEEESSSS
With default field separation, the collating sequence is that of _ssss_oooo_rrrr_tttt _----_bbbb;
with _----_tttt, the sequence is that of a plain sort.
The conventions of the _jjjj_oooo_iiii_nnnn, _ssss_oooo_rrrr_tttt, _cccc_oooo_mmmm_mmmm, _uuuu_nnnn_iiii_qqqq, and _aaaa_wwww_kkkk commands are
wildly incongruous.
As an obsolescent feature, mutiple arguments can be specified for _----_oooo
option. At that time, filenames that are numeric may cause conflict when
the _----_oooo option is used just before listing filenames.
PPPPaaaaggggeeee 2222